using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 汇率 
    /// </summary>
    [SugarTable("exchange_rate")]
    public class ExchangeRate
    {

        /// <summary>
        /// 本币货币代码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "code_from")]
        public string CodeFrom { get; set; }

        /// <summary>
        /// 兑换货币代码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "code_to")]
        public string CodeTo { get; set; }

        /// <summary>
        /// 汇率(兑换1元)
        /// </summary>
        [SugarColumn(ColumnName = "rate")]
        public decimal Rate { get; set; }

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

    }
}
